<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<title></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<LINK rel="Bookmark" href="/favicon.ico" >
	<LINK rel="Shortcut Icon" href="/favicon.ico" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="<%=basePath%>resources/lib/html5.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/lib/respond.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/lib/PIE_IE678.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/static/h-ui/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/static/h-ui.admin/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/lib/Hui-iconfont/1.0.7/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/lib/icheck/icheck.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/static/h-ui.admin/skin/default/skin.css" id="skin" />
	<!--[if IE 6]>
	<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<!--/meta 作为公共模版分离出去-->

	<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-container">
	<form action="<%=basePath%>order/addOrder#" method="post" class="form form-horizontal" id="form-order-add">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">订单号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.id}" placeholder="订单号" id="id" name="id" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">游戏名称：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.gameName}" placeholder="游戏名称" id="gameName" name="gameName" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">下单来源：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.ww}" placeholder="下单来源" id="ww" name="ww" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">qq或微信号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.qq}" placeholder="qq" id="qq" name="qq" >
				<c:if test="${not empty object.qq}">
					<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=${object.qq}&site=qq&menu=yes">
						<img border="0" src="http://wpa.qq.com/pa?p=2:270863798:51" alt="联系用户" title="联系用户"/>
					</a>
				</c:if>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">手机号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.phone}" placeholder="手机号" id="phone" name="phone">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">代练内容：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.content}" placeholder="代练内容" id="content" name="content">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">用户账号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.gameUser}" placeholder="用户账号" id="gameUser" name="gameUser" >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">用户密码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.gamePassword}" placeholder="用户密码" id="gamePassword" name="gamePassword">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">子帐号：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.gameUserChild}" placeholder="子帐号" id="gameUserChild" name="gameUserChild">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">角色名：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.gameUserName}" placeholder="角色名" id="gameUserName" name="gameUserName">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">区服：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.serviceArea}" placeholder="区服" id="serviceArea" name="serviceArea">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">阵营：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.camp}" placeholder="阵营" id="camp" name="camp">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">职业天赋：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.professionalTalent}" placeholder="职业天赋" id="professionalTalent" name="professionalTalent">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">装等：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.install}" placeholder="装等" id="install" name="install">
			</div>
		</div>
		<c:if test="${userSession.type!=3}">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">订单价：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.orderPrice}" placeholder="订单价" id="orderPrice" name="orderPrice">
			</div>
		</div>
		</c:if>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">结算价：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.settlePrice}" placeholder="结算价" id="settlePrice" name="settlePrice">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">验收时间：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="width:180px;border-style:none" readOnly="true" value="${object.createTimeString}" placeholder="发布时间" id="createTimeString" name="createTimeString">
			</div>
		</div>
		<%--<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">总时间：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.allTime}" placeholder="总时间" id="allTime" name="allTime">
			</div>
		</div>--%>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">备注：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.remark}" placeholder="备注" id="remark" name="remark">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">订单类型：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" style="border-style:none" readOnly="true" value="${object.typeString}" placeholder="类型" id="true" name="true">
			</div>
		</div>
	</form>
</div>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="<%=basePath%>resources/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/jquery.validation/1.14.0/messages_zh.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/My97DatePicker/WdatePicker.js"></script>
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="<%=basePath%>resources/lib/webuploader/0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="<%=basePath%>resources/lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="<%=basePath%>resources/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
function modify_close(){
		layer.confirm('确认要关闭吗？',function(index){
			removeIframe();
		});
	}
	
$(function(){
    $.ajax({
        type: "get",
        url: "<%=basePath%>game/getGames",
        async: false,
        cache: false,
        success: function (data) {
            $("#gameSelect").empty();
            for(var i =0;i<data.length;i++){
                $("#gameSelect").append("<option value=" + data[i].id + ">" + data[i].name + "</option>");
            }
        }
    });
	$.ajax({
		type: "get",
		url: "<%=basePath%>user/getAllBeater",
		async: false,
		cache: false,
		success: function (data) {
			$("#beaterSelect").empty();
			$("#beaterSelect").append("<option value=''>不指定</option>");
			for(var i =0;i<data.length;i++){
				$("#beaterSelect").append("<option value=" + data[i].id + ">" + data[i].name +" (id:"+data[i].id +")</option>");
			}
		}
	});
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});

	$("#form-order-add1").validate({
		rules:{
			gameUserName:{
				required:true,
				minlength:2,
				maxlength:16
			},
			ww:{
				required:true,
			},
			phone:{
				required:false,
				isMobile:true,
			},
			gameUser:{
				required:true,
			},
			gamePassword:{
				required:true,
			},
			gameUserName:{
				required:true,
			},
			title:{
				required:true,
			},
			serviceArea:{
				required:true,
			},
			orderPrice:{
				required:true,
			},
			settlePrice:{
				required:true,
			},
			createTimeString:{
				required:true,
			},

		},
		onkeyup:false,
		focusCleanup:true,
		success:"valid",
		submitHandler:function(form){
			//$(form).ajaxSubmit();
			var index = parent.layer.getFrameIndex(window.name);
			//parent.$('.btn-refresh').click();
			parent.layer.close(index);
		}
	});
});
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>